package net.forsuber.tests;

import net.forsuber.data.PerfectgonzoFileDataSource;

import java.io.File;

/**
 * User: lzap
 * Date: 25.7.2007
 * Time: 22:39:49
 */
public class PerfectgonzoFileDataSourceTest {
    public static void main(String[] args) throws Exception {
        PerfectgonzoFileDataSource ds = new PerfectgonzoFileDataSource();
        ds.setSourceFile(new File("test1.txt"));
        ds.open();
        System.out.println(ds.getRecord(0).getTitle());
        System.out.println(ds.getRecord(3).getTitle());
        System.out.println("" + ds.getRecord(999));
        ds.close();
    }
}
